<div style="width:50%;margin-left:auto;margin-right:auto;margin-bottom: 10px;">
	<img src="<?php echo Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/avatar/'.$data['user']['avatar'];?>" style="width: 100%; padding: 5px;border: solid 1px #646464;"/>


	<?php
	$user_id = Yii::app()->user->getId();
	$friend_id = $data['user']['id'];

	if($friend_id == $user_id){
		?>
		<a href="<?php echo Yii::app()->request->baseUrl;?>/page/changeavatar">
			<img src="<?php echo Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/iconChangeAvatar.png';?>" style="margin-top: -34px; margin-left: 10px; position: absolute;">
		</a>
		<?php
	}
	?>
</div>
<h1 style="text-align: center;color: #4e4e4e;"><?php echo $data['user']['name']?></h1>

<div style="width: 90%; margin: 0 auto;padding: 15px 0;border-top: solid 1px #646464;">
  <h3 style="margin-bottom: 5px;color: #646464;;">GIỚI THIỆU</h3>
   <div style="margin-bottom: 0px;padding-left: 7px;">
  	<?php
		if(isset($data['user']['other']))
			foreach ($data['user']['other'] as $information)
				echo "$information<br/>";
		echo 'Giới tính : '.$data['user']['sex'].'.<br/>';
		echo 'Sinh ngày : '.$data['user']['birthday'].'.<br/>';
	?>
  </div>
</div>

<div style="width: 90%; margin: 0 auto;padding: 15px 0;border-top: solid 1px #646464;">
  <?php echo '<a href="'.Yii::app()->request->baseUrl.'/Page/ListFriend/">';?>
  <h3 style="margin-bottom: 5px;color: #646464;">DANH SÁCH BẠN BÈ</h3></a>
  	<?php
		foreach ($data['friends'] as $friend)
		{
			echo '<a href="'.Yii::app()->request->baseUrl.'/Page/Feed/'.$friend['id'].'">';
			echo '<img src="'.Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/avatar/'.$friend['avatar'].'" style="width: 15%; padding: 2px;"/></a>';
			//echo '<br/>'.$friend['name'].'<br/>';

		}
	?>
</div>

<div style="width: 90%; margin: 0 auto;padding: 15px 0;border-top: solid 1px #646464;">
  <?php echo '<a href="'.Yii::app()->request->baseUrl.'/Page/ListMusic/">';?>
  <h3 style="margin-bottom: 5px;color: #646464;">DANH SÁCH NHẠC</h3></a>
  	<?php
		foreach ($data['lists'] as $list){
			echo '<a href="'.Yii::app()->request->baseUrl.'/Page/List/'.$list['id'].'">';
			echo '<img src="'.Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/album/'.$list['photo'].'" style="width: 18%; padding: 2px;"/></a>';
			//echo '<br/>'.$list['title'].'<br/>';
		}
	?>
</div>